package com.state.self;

public class HiredState extends EmployeeState {

    public AlibabaCompany alibabaCompany;

    public HiredState(AlibabaCompany alibabaCompany) {
        this.alibabaCompany = alibabaCompany;
    }

    @Override
    public void exam() {
        System.out.println("已经通过了考试不需要重考");
    }

    @Override
    public boolean isHire() {
        System.out.println("恭喜，已经被录用了");
        return true;
    }

    @Override
    public void sendOffer() {
        if (this.alibabaCompany.getEmpty()>0){
            System.out.println("已经发送了offer");
        }else {
            System.out.println("暂无新的职位");
        }
    }
}
